package co.yixiang.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @program: yshop
 * @description: a
 * @author: zhuang.huan
 * @create: 2021-07-04 15:56
 **/
@Data
@Component
@ConfigurationProperties(prefix = "apollo.first.config")
public class ConfigFirstProperty {

    /**
     * 测试数字
     */
    private Integer oneNumber;

    /**
     * 测试字符串
     */
    private String oneStr;

    /**
     * 启用标记
     */
    private Boolean oneEnableFlag;

    /**
     * 税率 默认 0.03
     */
    private BigDecimal oneTaxRate = new BigDecimal("0.03");

}
